package com.sk.cardeal.entity;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * Created by sk on 2018/3/23.
 */

public class NewPartsList {


    /**
     * returnCode : 1
     * returnMsg : 成功
     * resultList : [{"partsId":"402880ec6168d9cf016168ff24330529","partsName":"韩泰轮胎（Hankook）235/60R18 RA33 107V","partsOeCode":"1664264","partsCount":1,"partsQualityList":[{"carWarehousePartsId":"402880ec6168d9cf016169f13df5076c","partsOeCode":"1664264","quality":1,"count":1,"warehouseType":1,"purchaseState":0,"priceQx":689,"price":669}]},{"partsId":"402880ec6168d9cf016168ff2aa90568","partsName":"韩泰轮胎（Hankook）235/60R18 RA33 107V","partsOeCode":"1664327","partsCount":1,"partsQualityList":[{"carWarehousePartsId":"402880ec616e1b8601616f0c1c610188","partsOeCode":"1664327","quality":1,"count":1,"warehouseType":1,"purchaseState":0,"priceQx":689,"price":669}]},{"partsId":"402880ec6168d9cf016168ff350205d2","partsName":"嘉实多（Castrol）极护 5W-40 A3/B4 1L 钛流体全合成机油润滑油SN/CF","partsOeCode":"782921","partsCount":1,"partsQualityList":[{"carWarehousePartsId":"402880ec616e1b8601616f0bf7bd0123","partsOeCode":"782921","quality":1,"count":1,"warehouseType":1,"purchaseState":0,"priceQx":119,"price":99}]}]
     * returnObject : null
     */

    private int returnCode;
    private String returnMsg;
    private Object returnObject;
    private List<ResultListBean> resultList;

    public int getReturnCode() {
        return returnCode;
    }

    public void setReturnCode(int returnCode) {
        this.returnCode = returnCode;
    }

    public String getReturnMsg() {
        return returnMsg;
    }

    public void setReturnMsg(String returnMsg) {
        this.returnMsg = returnMsg;
    }

    public Object getReturnObject() {
        return returnObject;
    }

    public void setReturnObject(Object returnObject) {
        this.returnObject = returnObject;
    }

    public List<ResultListBean> getResultList() {
        return resultList;
    }

    public void setResultList(List<ResultListBean> resultList) {
        this.resultList = resultList;
    }

    public static class ResultListBean {
        /**
         * partsId : 402880ec6168d9cf016168ff24330529
         * partsName : 韩泰轮胎（Hankook）235/60R18 RA33 107V
         * partsOeCode : 1664264
         * partsCount : 1
         * partsQualityList : [{"carWarehousePartsId":"402880ec6168d9cf016169f13df5076c","partsOeCode":"1664264","quality":1,"count":1,"warehouseType":1,"purchaseState":0,"priceQx":689,"price":669}]
         */

        private String partsId;
        private String partsName;
        private String partsOeCode;
        private int partsCount;
        private List<PartsQualityListBean> partsQualityList;

        public String getPartsId() {
            return partsId;
        }

        public void setPartsId(String partsId) {
            this.partsId = partsId;
        }

        public String getPartsName() {
            return partsName;
        }

        public void setPartsName(String partsName) {
            this.partsName = partsName;
        }

        public String getPartsOeCode() {
            return partsOeCode;
        }

        public void setPartsOeCode(String partsOeCode) {
            this.partsOeCode = partsOeCode;
        }

        public int getPartsCount() {
            return partsCount;
        }

        public void setPartsCount(int partsCount) {
            this.partsCount = partsCount;
        }

        public List<PartsQualityListBean> getPartsQualityList() {
            return partsQualityList;
        }

        public void setPartsQualityList(List<PartsQualityListBean> partsQualityList) {
            this.partsQualityList = partsQualityList;
        }

        public static class PartsQualityListBean implements Parcelable {
            /**
             * carWarehousePartsId : 402880ec6168d9cf016169f13df5076c
             * partsOeCode : 1664264
             * quality : 1
             * count : 1
             * warehouseType : 1
             * purchaseState : 0
             * priceQx : 689.0
             * price : 669.0
             */

            private String carWarehousePartsId;
            private String partsOeCode;
            private String partsName;
            private int quality;
            private int count;
            private int warehouseType;
            private int purchaseState;
            private double priceQx;
            private double price;
            private int wantCount;
            private boolean isOpen = false;
            private double editPrice;
            int groupPos;
            int childPos;

            public int getGroupPos() {
                return groupPos;
            }

            public void setGroupPos(int groupPos) {
                this.groupPos = groupPos;
            }

            public int getChildPos() {
                return childPos;
            }

            public void setChildPos(int childPos) {
                this.childPos = childPos;
            }

            public String getPartsName() {
                return partsName;
            }

            public void setPartsName(String partsName) {
                this.partsName = partsName;
            }

            public boolean isOpen() {
                return isOpen;
            }

            public void setOpen(boolean open) {
                isOpen = open;
            }

            public double getEditPrice() {
                return editPrice;
            }

            public void setEditPrice(double editPrice) {
                this.editPrice = editPrice;
            }

            public int getWantCount() {
                return wantCount;
            }

            public void setWantCount(int wantCount) {
                this.wantCount = wantCount;
            }

            public String getCarWarehousePartsId() {
                return carWarehousePartsId;
            }

            public void setCarWarehousePartsId(String carWarehousePartsId) {
                this.carWarehousePartsId = carWarehousePartsId;
            }

            public String getPartsOeCode() {
                return partsOeCode;
            }

            public void setPartsOeCode(String partsOeCode) {
                this.partsOeCode = partsOeCode;
            }

            public int getQuality() {
                return quality;
            }

            public void setQuality(int quality) {
                this.quality = quality;
            }

            public int getCount() {
                return count;
            }

            public void setCount(int count) {
                this.count = count;
            }

            public int getWarehouseType() {
                return warehouseType;
            }

            public void setWarehouseType(int warehouseType) {
                this.warehouseType = warehouseType;
            }

            public int getPurchaseState() {
                return purchaseState;
            }

            public void setPurchaseState(int purchaseState) {
                this.purchaseState = purchaseState;
            }

            public double getPriceQx() {
                return priceQx;
            }

            public void setPriceQx(double priceQx) {
                this.priceQx = priceQx;
            }

            public double getPrice() {
                return price;
            }

            public void setPrice(double price) {
                this.price = price;
            }

            public PartsQualityListBean() {
            }

            @Override
            public int describeContents() {
                return 0;
            }

            @Override
            public void writeToParcel(Parcel dest, int flags) {
                dest.writeString(this.carWarehousePartsId);
                dest.writeString(this.partsOeCode);
                dest.writeString(this.partsName);
                dest.writeInt(this.quality);
                dest.writeInt(this.count);
                dest.writeInt(this.warehouseType);
                dest.writeInt(this.purchaseState);
                dest.writeDouble(this.priceQx);
                dest.writeDouble(this.price);
                dest.writeInt(this.wantCount);
                dest.writeByte(this.isOpen ? (byte) 1 : (byte) 0);
                dest.writeDouble(this.editPrice);
                dest.writeInt(this.groupPos);
                dest.writeInt(this.childPos);
            }

            protected PartsQualityListBean(Parcel in) {
                this.carWarehousePartsId = in.readString();
                this.partsOeCode = in.readString();
                this.partsName = in.readString();
                this.quality = in.readInt();
                this.count = in.readInt();
                this.warehouseType = in.readInt();
                this.purchaseState = in.readInt();
                this.priceQx = in.readDouble();
                this.price = in.readDouble();
                this.wantCount = in.readInt();
                this.isOpen = in.readByte() != 0;
                this.editPrice = in.readDouble();
                this.groupPos = in.readInt();
                this.childPos = in.readInt();
            }

            public static final Creator<PartsQualityListBean> CREATOR = new Creator<PartsQualityListBean>() {
                @Override
                public PartsQualityListBean createFromParcel(Parcel source) {
                    return new PartsQualityListBean(source);
                }

                @Override
                public PartsQualityListBean[] newArray(int size) {
                    return new PartsQualityListBean[size];
                }
            };
        }
    }
}
